package com.aix.demo.view;

import android.app.Dialog;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.Window;
import android.widget.Spinner;

import com.aix.demo.R;

public class CustomSpinner extends Spinner {

	private static final String TAG = "CustomSpinner";
	
	public CustomSpinner(Context context, AttributeSet attrs, int defStyle,
			int mode) {
		super(context, attrs, defStyle, mode);
	}

	public CustomSpinner(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
	}

	public CustomSpinner(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public CustomSpinner(Context context, int mode) {
		super(context, mode);
	}
	
	public CustomSpinner(Context context) { 
		super(context);
	}

	@Override
	public boolean performClick() {
//		Dialog dialog = new Dialog(getContext());
//		dialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE);
//		dialog.setContentView(R.layout.dialog);
//		
//		Log.e(TAG, "y : " + getY() + " height : " + getHeight());
//		
//		dialog.show();
//		
//		return true;
		
		return super.performClick();
	}

}
